package com.hall.dao;

import com.hall.pojo.Appointment;
import com.hall.pojo.AppointmentFiles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CaseManagementMapper {
    /**
     * 会议期次和关联的病例id,病例文件,病例内容,专家建议
     * @param appointmentId 会议ID
     * @return 会议对象
     */
    List<Appointment> findAppointmentById(@Param("appointmentId")String appointmentId);
    /**
     * 根据会议id查询参会人员以及参会医院
     * @param appointmentId 会议ID
     * @return 参会人员和参会医院
     */
    Appointment findAppointUserById(@Param("appointmentId")String appointmentId);
    /**
     * 更新专家建议
     * @param appointmentFiles 病例表
     * @return 结果
     */
    int updateCase(AppointmentFiles appointmentFiles);
}
